package com.huawei.appmarket.service.installfail;

import android.os.Bundle;
import android.text.TextUtils;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.foundation.ui.framework.activity.BaseActivity;
import o.cjk;
import o.cjm;
import o.cjo;
import o.Logger;
import o.ewm.h;
import o.ewm.j;
import o.FragmentTransaction;

public class InstallFailDescriptionActivity extends BaseActivity<InsFailActivityProtocol> {
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        requestWindowFeature(1);
        setContentView(h.ʽ);
        InsFailActivityProtocol insFailActivityProtocol = (InsFailActivityProtocol) ʾ();
        if (insFailActivityProtocol != null) {
            if (Logger.ˎ()) {
                StringBuilder stringBuilder = new StringBuilder();
                stringBuilder.append("InstallFailDescriptionActivity").append("errorCode=").append(insFailActivityProtocol.ॱ().ॱ()).append(" iconUrl=").append(insFailActivityProtocol.ॱ().ˎ()).append(" appName=").append(insFailActivityProtocol.ॱ().ˊ()).append(" pkgName=").append(insFailActivityProtocol.ॱ().ˋ());
                Logger.ˏ("InstallFailDescriptionActivity", stringBuilder.toString());
            }
            if (insFailActivityProtocol.ॱ().ॱ() == 0 || TextUtils.isEmpty(insFailActivityProtocol.ॱ().ˎ()) || TextUtils.isEmpty(insFailActivityProtocol.ॱ().ˊ()) || TextUtils.isEmpty(insFailActivityProtocol.ॱ().ˋ())) {
                finish();
                return;
            }
            cjo insFailFragmentProtocol = new InsFailFragmentProtocol();
            insFailFragmentProtocol.ˎ(insFailActivityProtocol.ॱ());
            Fragment ˊ = cjk.ˎ().ˊ(new cjm(insFailActivityProtocol.insFailFragment, insFailFragmentProtocol));
            FragmentTransaction ˊ2 = ˏॱ().ˊ();
            ˊ2.ˏ(j.ˑʽ, ˊ, "fragment_tag");
            ˊ2.ˋ();
            return;
        }
        Logger.e("InstallFailDescriptionActivity", "onCreate insFailActivityProtocol is null.");
    }

    public void onResume() {
        super.onResume();
        setRequestedOrientation(1);
    }
}
